﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CRM
{
    public partial class UpdatePass : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Common.CheckMes.CheckState("User_ID", "Index.aspx", "用户登录信息丢失，青重新登录...");
        }

        protected void BtnSaveUserInfo_Click(object sender, EventArgs e)
        {
            if (BLL.ServiceUser.UpdateUserPass(Common.GetMes.GetSession("User_ID"), txtOldPass.Text.Trim(), txtCheckPass.Text.Trim()))
            {
                Common.MessageBox.Show(Page, "密码修改成功,新密码[ "+txtCheckPass.Text.Trim()+" ]......", "Body.aspx", "Suess");
            }
            else
            {
                //5%1%a%s%p%x
               Common.MessageBox.Show(Page, "密码修改失败,请确定您的原密码正确...", "UpdatePass.aspx", "File");
            }
        }
    }
}
